<template>
    <div><button @click="sendMessage">brother2</button></div>
</template>

<script>
import bus from '@/utils/eventBus';
export default {
    components: {},
    props: {},
    data() {
        return {};
    },
    computed: {},
    methods: {
        sendMessage() {
            bus.$emit('fromParent', { name: '曹成' });
        }
    },
    created() {},
    mounted() {}
};
</script>
<style scoped></style>
